package Q4;
/*
其中 User 类的特征有：用户名、密码(字符串类型)
 */

import java.io.Serializable;

public class User implements Serializable {
    private static final long serialVersionUID = 8516884165871207749L;
    String name;
    String password;

    public User(String name, String password) {
        this.name = name;
        this.password = password;
    }


    public String getName() {
        return name;
    }

    public String getPassword() {
        return password;
    }

    @Override
    public String toString() {
        return "name: "+ name +"\npassword: "+ password;
    }
}
